import Layout from '@/layout';

const distributionRouter = {
    path: '/onsite',
    component: Layout,
    redirect: '/onsite/order_list',
    name: 'onsite',
    meta: {
        title: '基础',
    },
    children: [
        {
            path:'cate_list',
            component:() => import('@/views/onsite/serviceCate/index'),
            name:'service_cate',
            meta:{title:'服务分类',icon:''}
        },
        {
            path:'service_list',
            component: () => import('@/views/onsite/service/index'),
            name:'service_list',
            meta:{title:'服务列表'}
        },
        {
            path:'service_type',
            component: () => import('@/views/onsite/serviceType/index'),
            name:'service_type',
            meta:{title:'服务类型'}
        },
        {
            path:'add_item',
            component: () => import('@/views/onsite/service/handle/editForm'),
            name:'addItem',
            meta:{title:'编辑服务详情'}
        },
        {
            path:'order_comment',
            component: () => import('@/views/onsite/comment/index'),
            name:'orderComment',
            meta:{title:'订单评论'}
        },
        {
            path:'suggest',
            component: () => import('@/views/onsite/suggest/index'),
            name:'suggestList',
            meta:{title:'反馈意见'}
        },
        {
            path:'log',
            component: () => import('@/views/onsite/log/index'),
            name:'logList',
            meta:{title:'操作日志'}
        },
        {
            path:'extract_list',
            component: () => import('@/views/onsite/extract/index'),
            name:'onsiteExtractList',
            meta:{title:'提现审核'}
        },
        {
            path:'order_list',
            component: () => import('@/views/onsite/order/index'),
            name:'orderList',
            meta:{title:'订单列表'}
        },
        {
            path:'subjoin_order',
            component: () => import('@/views/onsite/subOrder/index'),
            name:'subjoinOrder',
            meta:{title:'当面付列表'}
        }
    ],
};

export default distributionRouter;